
import Vue from 'vue'
import Router from 'vue-router'

//导入视图组件
import Login from '../views/Login'
import Main from '../views/Main'

Vue.use(Router);

export default new Router({
    routes: [
      {
        path: '/login',
        name: 'login',
        component: Login
      },
      {
        path: '/main',
        name: 'main',
        component: Main
      }
    ]
});
